﻿namespace devMobile
{
    using System;
    using System.Windows.Media;

    public static class ExtensionsColor
    {
        public static Color Random(this Color value)
        {
            var random = new Random();
            var coloring = new byte[3];
            random.NextBytes(coloring);
            return new Color { R = coloring[0], B = coloring[1], G = coloring[2], A = 255 };
        }
    }
}
